﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="blogmanage.aspx.cs"
    Inherits="chatblog.blogmanage" Title="老友故事" %>

<%@ Register Assembly="RuleCode.Common" Namespace="RuleCode.Controls" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="../Stylesheet1.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
            vertical-align: text-top;
        }
        .style2
        {
            width: 180px;
            vertical-align: top;
        }
        .style1893
        {
            width: 4px;
            background-color: Gray;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <div style="width: 100%; height: 80px; border-bottom-color: Gray; border-bottom-width: 1px;
        border-bottom-style: solid; background-image: url(../img/bloghead.gif); background-position: left;
        background-repeat: no-repeat;">
        <asp:HyperLink ID="HyperLink_default" runat="server" Font-Bold="true" Font-Size="Large">首页</asp:HyperLink>
    </div>
    <asp:Panel ID="Panel_manage" runat="server">
        <a href="../blog/blogedit.aspx">写博客</a> &nbsp; <a href="catalist.aspx">分类</a> &nbsp; <a href="blogsetting.aspx">
            设置</a> &nbsp;
    </asp:Panel>
    <table class="style1">
        <tr>
            <td class="style2">
                <div style="width: 100%">
                    <div style="width: 100%; height: 26px; vertical-align: middle; background-image: url(../images/blogleft1.gif);
                        background-position: left; background-repeat: no-repeat; background-color: #FF9900;">
                        <span style="font-weight: normal; color: White;">公告:</span></div>
                    <div style="background-color: White; width: 150px;">
                        <asp:Literal ID="Literal_desc" runat="server"></asp:Literal></div>
                </div>
                <asp:GridView ID="GridView_cata" runat="server" AutoGenerateColumns="False" BackColor="White"
                    BorderColor="#999999" Width="100%" ForeColor="Black" HeaderStyle-HorizontalAlign="Left"
                    GridLines="Vertical" BorderStyle="Solid">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <a href='<%#ResolveUrl("~/blog.aspx")+"?cbusercataid=" +System.Web.HttpUtility.UrlEncode(Eval("cbusercataid").ToString())+chatblog.blog.getstr() %>'>
                                    <%#Eval("cbname")%></a>
                            </ItemTemplate>
                            <HeaderTemplate>
                                <div style="width: 100%; height: 26px; vertical-align: middle; background-image: url(../images/blogleft1.gif);
                                    background-position: left; background-repeat: no-repeat; background-color: #FF9900;">
                                    <asp:HyperLink ID="HyperLink_fenlei" runat="server" NavigateUrl='<%#ResolveUrl("~/blog.aspx?")+chatblog.blog.getstr() %>'><b style="color:White;">全部分类</b></asp:HyperLink></div>
                            </HeaderTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#CCCCCC" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#000099" ForeColor="White" Font-Bold="True" />
                    <HeaderStyle HorizontalAlign="Left" />
                    <AlternatingRowStyle BackColor="#CCCCCC" />
                </asp:GridView>
            </td>
            <td style="vertical-align: top">
                <asp:DataList ID="DataList_content" runat="server" BackColor="White" BorderColor="#336666"
                    BorderWidth="3px" CellPadding="4" Width="100%" DataKeyField="RECID" OnItemCommand="DataList_content_ItemCommand"
                    BorderStyle="Double" GridLines="Horizontal">
                    <FooterStyle BackColor="White" ForeColor="#333333" />
                    <ItemTemplate>
                        <table style="width: 100%">
                            <tr>
                                <td class="style1893" rowspan="2">
                                </td>
                                <td>
                                    <a href='<%#ResolveUrl("~/blogview/")+Eval("cblistid")+".html"%>' style="font-size: large;
                                        font-weight: bold;">
                                        <%#Eval("cbtitle")%></a> &nbsp; <a href='<%#ResolveUrl("~/blog/blogedit.aspx")+"?cblistid=" +Eval("cblistid")%>'>
                                            修改</a> &nbsp;
                                    <asp:LinkButton ID="LinkButton_del" runat="server" CommandName="del">删除</asp:LinkButton>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    时间:<%#Eval("jccreatedate")%>
                                    &nbsp;
                                    <%#Eval("jccreatetime")%>
                                    &nbsp; 分类:<%#Eval("cbusercataid")%>
                                </td>
                            </tr>
                        </table>
                        <div style="width: 100%;">
                            <%#Eval("cbcontent")%></div>
                        <div>
                            <a href='<%#ResolveUrl("~/blogview/")+Eval("cblistid")+".html"%>' style="border-top-width: 1px;
                                border-top-color: Gray; border-top-style: dotted;">评论(<%#Eval("huifushu")%>)</a>
                            &nbsp; <a href='<%#ResolveUrl("~/blogview/")+Eval("cblistid")+".html"%>'
                                style="border-top-width: 1px; border-top-color: Gray; border-top-style: dotted;">
                                阅读(<%#Eval("chakanshu")%>)</a>
                        </div>
                    </ItemTemplate>
                    <ItemStyle BackColor="White" ForeColor="#333333" />
                    <SelectedItemStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                    <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
                </asp:DataList>
                <cc1:WebPager ID="WebPager_content" runat="server" 
                    ControlToPaginate="DataList_content" 
                    onpageindexchanged="WebPager_content_PageIndexChanged" PageSize="30" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
